<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%-- <link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/default/easyui.css"/>">

<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/icon.css"/>">

<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/hwc_login_style.css"/>">

<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery-3.1.0.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>
 --%>
<link rel="stylesheet" type="text/css"href="<c:url value="/css/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/icon.css"/>">
<link rel="stylesheet" type="text/css" href="<c:url value="/css/themes/hwc_login_style.css"/>">
<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery-3.1.0.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>
 
<title>登录测试</title>
	<script type="text/javascript">
		$(function(){
			//验证登录
			$("#login_submit").click(function(){
				var accountLen = $("#account").val().length;
				var passwordLen = $("#password").val().length;
				if(accountLen < 7 || accountLen > 20){
					$.messager.alert("提示","员工账号必须在7—20个字符之间！");
					
						return false;
					
				}else if(passwordLen == 0){
					$.messager.alert("提示","密码不能为空！");
					return false;
				}	
			});	
			//
			
			
			
		});
	</script>
</head>
<body>
	<script type="text/javascript">
	$(function(){
		$("#login_submit").click(function(){
			var accountLen = $("#account").val().length;
			var passwordLen = $("#password").val().length;
			if(accountLen < 7 || accountLen > 20){
				$.messager.alert("提示","员工账号必须在7—20个字符之间！");
				
					return false;
				
			}else if(passwordLen == 0){
				$.messager.alert("提示","密码不能为空！");
				return false;
			}	
		});	
	});
	</script>
	<% //session.setAttribute("account", 259L); %>
	<form  id="hwc-loginform" action="hwc_login" method="post">
	
		Account：<input id="account" name="account" class="easyui-textbox" data-options="validType:'length[7,20]',required:true"><br>
		Password：<input id="password" name="password"  class="easyui-textbox" data-options="required:true"><br>
		
		 <!-- -->
		 
		 <input id="login_submit" type="submit" value="登录"> 
	
	</form>

</body>
</html>